import request from '@/utils/request'

// 查询回收订单列表
export function listRecycleOrder(data) {
  return request({
    url: '/ruoyi-recycle/recycleOrder/recycleOrderPageQuery',
    method: 'post',
    data: data
  })
}

// 查询回收订单详细
export function getRecycleOrder(id) {
  return request({
    url: '/ruoyi-recycle/recycleOrder/' + id,
    method: 'get'
  })
}

// 新增回收订单
export function addRecycleOrder(data) {
  return request({
    url: '/ruoyi-recycle/recycleOrder',
    method: 'post',
    data: data
  })
}

// 修改回收订单
export function updateRecycleOrder(data) {
  return request({
    url: '/ruoyi-recycle/recycleOrder',
    method: 'put',
    data: data
  })
}

// 删除回收订单
export function delRecycleOrder(id) {
  return request({
    url: '/ruoyi-recycle/recycleOrder/' + id,
    method: 'delete'
  })
}